home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / pack / xfh132.lzh / XFH / src / libmygcc / gen_library / Makefile < prev   
Makefile  |  1993-01-17  |  603b  |  32 lines

  1. # Makefile using BMake and GCC.
  2.  
  3. CC = gcc
  4. DEBUG =
  5. DEF =
  6. #OPT =
  7. OPT = -O2 -fomit-frame-pointer -funroll-loops
  8. INC = -Igcc:os-include/include/ -I../
  9. CFLAGS = $(DEBUG) $(OPT) $(INC) $(DEF)
  10.  
  11. OBJECTS = ctype_.o globals.o
  12.  
  13. # This needs to be a macro since bmake doesn't gronk the '='.
  14. FIXCTYPE = -D_ctype_=_ctype_array
  15.  
  16. all: $(OBJECTS)
  17.  
  18. # Hack to avoid shared-lib _ctype_ table (#ifdef KERNEL stuff).
  19. ctype_.o: ctype_.c
  20.    $(CC) -c $(FIXCTYPE) $(CFLAGS) $*.c
  21.  
  22.  
  23. .c.o:
  24.    $(CC) -c $(CFLAGS) $*.c
  25.  
  26. .s.o:
  27.    copy $*.s x.c
  28.    gcc -traditional -E x.c -o x.s
  29.    gcc -c $(CFLAGS) x.s -o <file>.o
  30.  
  31. .SUFFIXES: .c .s .o
  32.